The Slider Component > FSlider.getHorizontal() |
FSlider.getHorizontal()
Availability
Flash Player 6.
Usage
mySlider_sld.getHorizontal ()
Parameters
none
Returns
Returns the current orientation of the slider component.
Description
Returns the current orientation of the slider component. It will return true for horizontal and false for vertical.
Note
none
Example
The slider_getHorizontal.fla example file contains an example of using this method.
The following code sets horizontal to true and then retrieves and traces this value.
mySlider_sld.setHorizontal(true); //the slider will display horizontally. trace( "Horizontal: " + mySlider_sld.getHorizontal() );
See also